<template>
  <div>
      <h1>用户名：{{userId}}</h1>
      <img :src="icon" width="200px" height="auto"><br/>
      <el-button type="primary">重新上传<i class="el-icon-upload el-icon--right"></i></el-button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      icon: '',
      userId: ''
    }
  },
  mounted () {
    // alert(sessionStorage.getItem('user').userId)
    this.userId = window.sessionStorage.getItem('userId')
    this.icon = window.sessionStorage.getItem('icon')
  }
}
</script>

<style>

</style>
